package com.babyqiao.wallpaper.manager.service.impl;

import com.babyqiao.wallpaper.manager.entity.WallpaperAlbumTopRel;
import com.babyqiao.wallpaper.manager.dao.WallpaperAlbumTopRelMapper;
import com.babyqiao.wallpaper.manager.entity.vo.AlbumAndTopVO;
import com.babyqiao.wallpaper.manager.service.IWallpaperAlbumTopRelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author QLZ
 * @since 2021-02-23
 */
@Service
public class WallpaperAlbumTopRelServiceImpl extends ServiceImpl<WallpaperAlbumTopRelMapper, WallpaperAlbumTopRel> implements IWallpaperAlbumTopRelService {


    /**
     * 获取所有热度置顶
     *
     * @Author QLZ
     * @Date 2021/2/23
     * @return: java.util.List<com.babyqiao.wallpaper.manager.entity.vo.AlbumAndTopVO>
     */
    @Override
    public List<AlbumAndTopVO> getAllByHotService() {
        List<AlbumAndTopVO> albumAndTopVOList=baseMapper.selectAllByHot();
        return albumAndTopVOList;
    }

    /**
     * 获取所有人气置顶
     *
     * @Author QLZ
     * @Date 2021/2/23
     * @return: java.util.List<com.babyqiao.wallpaper.manager.entity.vo.AlbumAndTopVO>
     */
    @Override
    public List<AlbumAndTopVO> getAllByLikeService() {
        List<AlbumAndTopVO> albumAndTopVOList=baseMapper.selectAllByLike();
        return albumAndTopVOList;

    }
}
